/**
 * @classDescription  TIPS构造函数
 * @type {Object}
 * @param {Dom | DomCellection} 需要显示TIPS的对象
 */ 
function Tips(o){
	var el = (o instanceof Array)?o:[].concat(o);
	for(var i = 0, l = el.length; i < l; i++){
		Kg.addEvent(el[i], "mousemove", Kg.bind(function(e){
			e = e || window.event;
			var layer = Kg.$C("tip", this)[0];
			Tips.showLayer(layer, (e.clientX || e.pageX), (e.clientY || e.pageY));
		}, el[i]));

		Kg.addEvent(el[i], "mouseout", Kg.bind(function(){
			var layer = Kg.$C("tip", this)[0];
			layer.style.display = "none";
		}, el[i]));
	}
}

Tips.showLayer = function(el, evtX, evtY){
	el.style.display = "block";
	var s = Kg.getBodySize();
	el.style.left = evtX + s.sL + 5 + "px";
	el.style.top = evtY + s.sT - 5 + "px";
}